{% extends "dash/empresa.html" %}

{% block mystylesheet-dashboard %}
    <link rel="stylesheet" href="/mymedia/css/styleMati.css" type="text/css" />
{% endblock mystylesheet-dashboard%}

{% block menuOptionsSelected %}
    <ul class="menu-options">
        <li class="menu-item"><a href="/dash/dashboard/">Dashboard</a></li>
        <!--<li class="menu-item"><a href="/dash/topicos/">Topicos</a></li>-->
    </ul>
{% endblock menuOptionsSelected %}

{% block dashboard %}
    <div class="title-messages">Consultas</div>
    <div class="list-content-user-messages">
        <ul>
            {% for consulta in consulta_item %}
                <li class="content-user-messages">
                    <div class="user-message-image">
                        {% if usuario.persona.avatar %}
                                <img src="{{ usuario.persona.avatar.url_50x50 }}" alt="Logo" />
                        {% else %}
                            {% if usuario.persona %}
                                {% if user.sexo == "M" %}
                                    <img src="/mymedia/images/avatar-male.png" alt="Logo" />
                                {% else %}
                                    <img src="/mymedia/images/avatar-famale.png" alt="Logo" />
                                {% endif%}
                            {% else %}
                                    <img src="/mymedia/images/020.png" alt="Logo" />
                            {% endif%}
                        {% endif%}
                    </div>
                    <div class="user-message-name">
                        {{ consulta.mensaje }}
                    </div>
                    <div class="user-message-last"></div>
                    <div class="clear"></div>
                </li>
            {% endfor %}
        </ul>
    </div>
{% endblock dashboard %}
